package com.khalil.kkadmin.module.cms.service;

import com.khalil.kkadmin.common.util.JsonUtil;
import com.khalil.kkadmin.infrastructure.BaseService;
import com.khalil.kkadmin.module.cms.domain.CmsContentGroup;
import com.khalil.kkadmin.module.cms.domain.CmsContentGroupRepository;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CmsContentGroupServiceImpl extends BaseService<CmsContentGroupRepository, CmsContentGroup, Long> implements CmsContentGroupService {
    public CmsContentGroupServiceImpl(CmsContentGroupRepository repository) {
        super(repository);
    }

    @Override
    protected CmsContentGroup str2CreateEntity(String json) {
        return JsonUtil.parseJson2Object(json, CmsContentGroup.class);
    }

    @Override
    protected CmsContentGroup str2UpdateEntity(String json) {
        return JsonUtil.parseJson2Object(json, CmsContentGroup.class);
    }

    @Override
    public List<CmsContentGroup> list(String params) {
        return List.of();
    }
}
